import { IpcWindow } from "../../util/IpcWindow/IpcWindow";
import { WindowName } from "../../../electron/appInstance/enums";

export interface CloseData {
  windowName: WindowName;
  success: boolean;
  errorMessage?: string;
  errorTitle?: string;
  errorLevel?: any;
}

export interface MergeParam {
  sourceProjectId: string;
  targetProjectId: string;
  rootId: string;
  sourceProjectName: string;
  targetProjectName: string;
  isSourceOnline: string;
  isSourceOpened: boolean;
}

export const projectMergeWindow = new IpcWindow<
  {
    sourceProjectId: string;
    targetProjectId: string;
    rootId: string;
    sourceProjectName: string;
    targetProjectName: string;
    isSourceOnline: string;
    isSourceOpened: boolean;
  },
  CloseData
>(WindowName.ProjectMerge);
